Skip to content

Conversation

Firestar99
Copy link
Member

@Firestar99 Firestar99 commented Sep 8, 2025

Requires #334

Old embark PR trying to do the same: https://github.com/EmbarkStudios/rust-gpu/pull/1158/files

Opened to have a place to start this table

Size and Alignment chart

(rust-gpu chooses chaotic evil)

type offset in
difftest
CPU current new layout, no hacks
size align size align size align
UVec2 0x400 8 4 8 *8* 8 4
IVec2 0x500 8 4 8 *8* 8 4
Vec2 0x600 8 4 8 *8* 8 4
UVec3 0x800 12 4 *16* *16* 12 4
IVec3 0x900 12 4 *16* *16* 12 4
Vec3 0xa00 12 4 *16* *16* 12 4
Vec3A 0xb00 16 16 16 16 *12* *4*
UVec4 0xc00 16 4 16 *16* 16 4
IVec4 0xd00 16 4 16 *16* 16 4
Vec4 0xe00 16 16 16 16 16 *4*

@Firestar99 Firestar99 changed the base branch from main to difftest_refactor September 8, 2025 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant